<?php

/**
 * @Description    菜单/权限验证
 * @Author         songgy <Email:songgy@liuniukeji.com>
 * @Copyright      山东艾思软件科技有限公司(https://www.aisisofit.cn)
 * @Date           2019/2/22
 * @CreateBy       PhpStorm
 */

namespace app\core\validate;

use think\Validate;

class CoreRule extends Validate {

    protected $rule = [
        'name'    => 'require|max:100',
        'pid'     => 'number|between:0, 9999999999',
        'title'   => 'require|max:50',
        'icon'    => 'max:50',
        'remark'  => 'max:255',
        'is_menu' => 'between:0,9',
        'usable'  => 'between:0,9',
        'sort'    => 'number|between:0,99999',
    ];

    protected $message = [
        'title.require' => '菜单名称输入有误',
        'name.require'  => '标识(URL)输入有误',
    ];
}
